from selenium import  webdriver
from selenium.webdriver.common.keys import  Keys
import time

bs= webdriver.Chrome('E:/chromedriver/chromedriver.exe')
bs.get('https://www.baidu.com/')

elm=bs.find_element_by_link_text('新闻')
bs.implicitly_wait(5)
elm.click()
time.sleep(5)
bs.back()
time.sleep(5)
bs.forward()
time.sleep(5)
bs.refresh()